﻿using System;

namespace BoresSoft.Ftp
{
	/// <summary>
	/// Event arguments for credential request event.
	/// </summary>
    public class CredentialRequiredEventArgs : EventArgs
    {
        internal CredentialRequiredEventArgs(int attempt, bool password)
        {
            Password = password;
			Attempt = attempt;
        }

		/// <summary>
		/// What is required: user name or password.
		/// </summary>
        public bool Password
        {
            get;
            private set;
        }

		/// <summary>
		/// Credential string.
		/// </summary>
        public string Credential
        {
            get;
            set;
        }

		/// <summary>
		/// What number of attempt.
		/// </summary>
		public int Attempt
		{
			get;
			private set;
		}
    }
}
